from queue import Queue
mp = []
for i in range(0, 30):
    mp.append(input())
for i in range(len(mp)):
    mp[i] = '1' + mp[i] + '1'
mp = ['i' * 52] + mp + ['i' * 52]
vis = [list(map(int, list(i))) for i in mp]
k = ['D', 'L', 'R', 'U']
dir = ((1, 0), (0, -1), (0, 1), (-1, 0))
vis[1][1] = 1  #起点
q = Queue()
q.put((1, 1, ""))
while q.qsize() != 0:
    x, y, p = q.get()
    if x == 30 and y == 50:
        print(p)
        break
    for i in range(4):
        nx = x + dir[i][0]
        ny = y + dir[i][1]
        if vis[nx][ny] != 1:
            vis[nx][ny] = 1
            path = p + k[i]
            q.put((nx, ny, path))
x = q.qsize()
for i in range(x):
    print(q.get())
